package com.naze32.configurator.designerscripts;
import anywheresoftware.b4a.objects.TextViewWrapper;
import anywheresoftware.b4a.objects.ImageViewWrapper;
import anywheresoftware.b4a.BA;


public class LS_radio{

public static void LS_general(java.util.HashMap<String, anywheresoftware.b4a.objects.ViewWrapper<?>> views, int width, int height, float scale) {
views.get("label1").setTop((int)((100d / 100 * height)/9d));
views.get("label2").setTop((int)(2d*(100d / 100 * height)/9d));
views.get("label3").setTop((int)(3d*(100d / 100 * height)/9d));
views.get("label4").setTop((int)(4d*(100d / 100 * height)/9d));
views.get("label5").setTop((int)(5d*(100d / 100 * height)/9d));
views.get("label6").setTop((int)(6d*(100d / 100 * height)/9d));
views.get("label7").setTop((int)(7d*(100d / 100 * height)/9d));
views.get("rollpitchrate").setTop((int)((100d / 100 * height)/9d));
views.get("yawrate").setTop((int)(2d*(100d / 100 * height)/9d));
views.get("throttlepidatt").setTop((int)(3d*(100d / 100 * height)/9d));
views.get("rcexpo").setTop((int)(4d*(100d / 100 * height)/9d));
views.get("rcrate").setTop((int)(5d*(100d / 100 * height)/9d));
views.get("throttlemid").setTop((int)(6d*(100d / 100 * height)/9d));
//BA.debugLineNum = 15;BA.debugLine="throttleExpo.Top=7*100%y/9"[radio/General script]
views.get("throttleexpo").setTop((int)(7d*(100d / 100 * height)/9d));
//BA.debugLineNum = 17;BA.debugLine="Label1.Left=45%x-Label2.Width"[radio/General script]
views.get("label1").setLeft((int)((45d / 100 * width)-(views.get("label2").getWidth())));
//BA.debugLineNum = 18;BA.debugLine="Label2.Left=45%x-Label2.Width"[radio/General script]
views.get("label2").setLeft((int)((45d / 100 * width)-(views.get("label2").getWidth())));
//BA.debugLineNum = 19;BA.debugLine="Label3.Left=45%x-Label2.Width"[radio/General script]
views.get("label3").setLeft((int)((45d / 100 * width)-(views.get("label2").getWidth())));
//BA.debugLineNum = 20;BA.debugLine="Label4.Left=45%x-Label2.Width"[radio/General script]
views.get("label4").setLeft((int)((45d / 100 * width)-(views.get("label2").getWidth())));
//BA.debugLineNum = 21;BA.debugLine="Label5.Left=45%x-Label2.Width"[radio/General script]
views.get("label5").setLeft((int)((45d / 100 * width)-(views.get("label2").getWidth())));
//BA.debugLineNum = 22;BA.debugLine="Label6.Left=45%x-Label2.Width"[radio/General script]
views.get("label6").setLeft((int)((45d / 100 * width)-(views.get("label2").getWidth())));
//BA.debugLineNum = 23;BA.debugLine="Label7.Left=45%x-Label2.Width"[radio/General script]
views.get("label7").setLeft((int)((45d / 100 * width)-(views.get("label2").getWidth())));
//BA.debugLineNum = 25;BA.debugLine="RollPitchRate.right=55%x+Label2.Width"[radio/General script]
views.get("rollpitchrate").setLeft((int)((55d / 100 * width)+(views.get("label2").getWidth()) - (views.get("rollpitchrate").getWidth())));
//BA.debugLineNum = 26;BA.debugLine="YawRate.right=55%x+Label2.Width"[radio/General script]
views.get("yawrate").setLeft((int)((55d / 100 * width)+(views.get("label2").getWidth()) - (views.get("yawrate").getWidth())));
//BA.debugLineNum = 27;BA.debugLine="ThrottlePidAtt.right=55%x+Label2.Width"[radio/General script]
views.get("throttlepidatt").setLeft((int)((55d / 100 * width)+(views.get("label2").getWidth()) - (views.get("throttlepidatt").getWidth())));
//BA.debugLineNum = 28;BA.debugLine="rcexpo.right=55%x+Label2.Width"[radio/General script]
views.get("rcexpo").setLeft((int)((55d / 100 * width)+(views.get("label2").getWidth()) - (views.get("rcexpo").getWidth())));
//BA.debugLineNum = 29;BA.debugLine="rcrate.right=55%x+Label2.Width"[radio/General script]
views.get("rcrate").setLeft((int)((55d / 100 * width)+(views.get("label2").getWidth()) - (views.get("rcrate").getWidth())));
//BA.debugLineNum = 30;BA.debugLine="throttleMid.right=55%x+Label2.Width"[radio/General script]
views.get("throttlemid").setLeft((int)((55d / 100 * width)+(views.get("label2").getWidth()) - (views.get("throttlemid").getWidth())));
//BA.debugLineNum = 31;BA.debugLine="throttleExpo.right=55%x+Label2.Width"[radio/General script]
views.get("throttleexpo").setLeft((int)((55d / 100 * width)+(views.get("label2").getWidth()) - (views.get("throttleexpo").getWidth())));

}
}